package com.yuanduo_app.manager;

import android.content.Context;
import android.content.Intent;

import com.didichuxing.doraemonkit.kit.AbstractKit;
import com.didichuxing.doraemonkit.kit.Category;

import com.yuanduo_app.R;

public class TestlKit extends AbstractKit {
    @Override
    public int getCategory () {
        return Category.BIZ;
    }

    @Override
    public int getName () {
        return R.string.test_btn;
    }

    @Override
    public int getIcon () {
        return R.mipmap.ic_launcher;
    }

    @Override
    public void onClick (Context context) {
        //支付宝测试
//        EventBus.getDefault().post(new PayEvent(PayType.TYPE_ALI).putData("orderInfo", "alipay_sdk=alipay-sdk-java-4.10.38.ALL&app_id=2021001170655105&biz_content=%7B%22out_trade_no%22%3A%22xmgj1111212122%22%2C%22passback_params%22%3A%22%E5%B0%8F%E9%A9%AC%E5%9B%BD%E7%82%AC%22%2C%22subject%22%3A%22%E5%B0%8F%E9%A9%AC%E5%9B%BD%E7%82%AC%22%2C%22timeout_express%22%3A%2260m%22%2C%22total_amount%22%3A%221%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fapi.guojutech.net%2Fpay-api%2Fapi%2Fv1%2Fnotify%2FalinotifyAndroid&sign=WWbkMkr1Syt5zVoge0hOb14g0a%2FdbbRopawcQO4HHmXd%2FTw1TgcVRAzNW1CBEdeKfkzbO8gh8AbwDDIJ0swnZw8qRT7AIFrfXjRrVGGr5RPrQBLItL%2FODkvyLZPti%2Bb29Fx4gCcg17KXzqqRENqYPwp7MR1Jl5JdUFJpaN6Z0FZXQby2nyHEgZjiYKVIONX3fRIHu%2FHkvOfz5u5A3L9W0n9IZX%2BT0tunRYng6HfNE9gQUkTiUYXJc15Ib%2F1Z1Z0lQ%2BZL1YisAoWvWIf7ome6sMzQC2ALGCU4iEMRU067eQvD2akPb0sRGOuNG%2BCpRtmlbHPDUIkNJGQVJ6n1VGX66A%3D%3D&sign_type=RSA2&timestamp=2020-07-01+13%3A51%3A32&version=1.0"));
//        final Intent intent = new Intent(context, FaceLivenessExpActivity.class);
        //微信支付测试
//        EventBus.getDefault().post(new PayEvent(PayType.TYPE_WX).putData("orderInfo", "ddddd"));
        //地址选择测试
//        final Intent intent = new Intent(context, ChooseAddressActivityControl.class);
//        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//        context.startActivity(intent);
    }

    @Override
    public void onAppInit (Context context) {

    }
}
